<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-model="http://www.w3.org/1999/xhtml">
  <head>
      <meta charset="UTF-8">
      <title>Vue事件绑定练习</title>
  </head>
  <body>
  <div id="app">
    <h1>演示Vue事件绑定操作</h1>
    书名:<input type="text" v-model:value="message">
    <button v-on:click="show()">点击显示输入框内容</button>
  </div>

  <script src="vue.js"></script>
  <script type="text/javascript">
    let vm = new Vue({
      el:"#app",
      data:{
        message:""
      },
      methods:{
        show() {
          alert(`输入的书名是:${this.message}`);
        }
      }
    })
  </script>
  </body>
</html>